package com.duobaoyu.dby.supply.biz.client.resource.bean.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("任务导入列表接口响应vo")
public class TaskAsyncVO implements Serializable {

	private static final long serialVersionUID = 6172851140661015355L;

	@ApiModelProperty(value = "任务ID->批次号")
	private Long id;

	@ApiModelProperty(value = "导入文件")
	private String fileName;

	@ApiModelProperty(value = "导入结果文件")
	private String fileUrl;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	@ApiModelProperty(value = "异步任务状态: 1->待处理; 2->部分完成; 3->处理完成; 4->处理失败")
	private Integer taskStatus;

	@ApiModelProperty(value = "导入成功数量")
	private Integer successTaskCount;

	@ApiModelProperty(value = "导入失败数量")
	private Integer failTaskCount;

	@ApiModelProperty(value = "导入失败原因")
	private String taskReason;
}
